package com.bzkj.basicinfo.service.basic;

import com.bzkj.basicinfo.domain.basic.BasicStoArea;
import com.bzkj.common.core.domain.AjaxResult;
import com.bzkj.common.core.page.TableDataInfo;

import java.util.List;

/**
 * @author wl
 * @description 针对表【basic_sto_area(WMS库区信息表)】的数据库操作Service
 * @createDate 2024-12-13 11:44:19
 */
public interface BasicStoAreaService {
    /**
     * 查询货区信息
     *
     * @Author wangzhichao
     * @Date 2024/12/13 11:56:46
     * @Param entity
     */
    List<BasicStoArea> findStoArea(BasicStoArea entity);

    /**
     * 查询erp库区数据
     *
     * @param entity
     * @return
     */
    AjaxResult selectErpStock(BasicStoArea entity);

    /**
     * 查询映射列表
     *
     * @param entity
     * @return
     */
    TableDataInfo selectErpMapStockList(BasicStoArea entity, int pageNum, int pageSize);

    /***
     * wms与erp库区映射表插入数据
     * @param entity
     * @return
     */
    AjaxResult insertErpMap(BasicStoArea entity);

    /***
     * wms与erp剂型映射表插入数据
     * @param entity
     * @return
     */
    AjaxResult insertJiXingMap(BasicStoArea entity);

    AjaxResult deleteErpMap(BasicStoArea entity);




    List<BasicStoArea> findStoAreaList(BasicStoArea entity);

    /**
     * 查询所有库区信息-前端下拉使用
     * @param entity
     * @return
     */
    List<BasicStoArea> findAllStoAreaList(BasicStoArea entity);


    /**
     * 新增库区
     *
     * @param stoArea 新增的库区对象
     * @return 新增的库区记录数
     */
    AjaxResult addStoArea(BasicStoArea stoArea);

    /**
     * 更新库区
     *
     * @param stoArea 更新的库区对象
     * @return 更新的库区记录数
     */
    AjaxResult updateStoArea(BasicStoArea stoArea);

    /**
     * 删除库区
     *
     * @param hw
     * @return
     */
    AjaxResult deleteStoAreaById(String hw);

    /**
     * 修改仓库状态
     *
     * @return
     */

    AjaxResult updateBasicStoAreaEnableStatus(String ckzht, String hw);

    /**
     * 剂型管理-状态修改
     * @param status
     * @param stoAreaId
     * @return
     */
    AjaxResult updateBasicStoAreaStatus(String status, String stoAreaId);

}
